/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package ee.ioc.phon.ohos.speechutils.utils;

import java.util.List;

/**
 * 转换成功后的信息
 *
 * @since 2021-03-30
 */
public class ResultInfo {
    private String resultType;
    private List<ResultBean> result;

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    /**
     * 转换成功后的具体信息
     *
     * @author:
     * @since 2021-03-30
     */
    public static class ResultBean {
        /**
         * confidence : 0.9800869226455688
         * end_time : 1720
         * ori_word : 你 好 你 好 你 好 你 好
         * pinyin : ni3 hao3 ni3 hao3 ni3 hao3 ni3 hao3
         * start_time : 440
         * word : 你好你好你好你好。
         */

        private double confidence;
        private int endTime;
        private String oriWord;
        private String pinyin;
        private int startTime;
        private String word;

        public double getConfidence() {
            return confidence;
        }

        public void setConfidence(double confidence) {
            this.confidence = confidence;
        }

        public int getEndTime() {
            return endTime;
        }

        public void setEndTime(int endTime) {
            this.endTime = endTime;
        }

        public String getOriWord() {
            return oriWord;
        }

        public void setOriWord(String oriWord) {
            this.oriWord = oriWord;
        }

        public String getPinyin() {
            return pinyin;
        }

        public void setPinyin(String pinyin) {
            this.pinyin = pinyin;
        }

        public int getStartTime() {
            return startTime;
        }

        public void setStartTime(int startTime) {
            this.startTime = startTime;
        }

        public String getWord() {
            return word;
        }

        public void setWord(String word) {
            this.word = word;
        }
    }
}
